{% extends "base-admin.html" %}
{% block title %}修改商品信息{% endblock %}
{% block main %}
    <h3>修改商品信息</h3>
    <hr>
    <form action="" method="post"
          {% if form.is_multipart %}enctype="multipart/form-data"{% endif %}>
        {% csrf_token %}

        {% for field in form %}
            <div class="control-group">
                <label class="control-label" for="{{ field.id_for_label }}">{{ field.label }}</label>
                <div class="controls">
                    {{ field }}
                    {% if  field.help_text %}
                    <span class="help-block">{{ field.help_text }}</span>
                    {% endif %}
                    {% if  field.errors %}
                    <span class="help-block">{{ field.errors }}</span>
                    {% endif %}
                </div>
            </div>
        {% endfor %}

        <div class="control-group" align="center">
            <div class="btn-group">
                <input type="submit"  class="btn btn-primary" value="修改"/>
            </div>
        </div>
    </form>

{% endblock %}
